package cn.xy.mapper;


import cn.xy.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from tb_user where username=#{username}")
    User selectUserByUsername(String username);

    @Insert("insert into tb_user(username,password,created_user,created_time,updated_user,updated_time) values(#{username},#{password},#{createdUser},#{createdTime},#{updatedUser},#{updatedTime})")
    void insertUser(User user);
}
